package com.lmaye.design.patterns.creation.simplefactory;

import org.junit.Test;

/**
 * -- 客户端测试
 *
 * @author lmay.Zhou
 * @date 2020/11/14 1:17 星期六
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class ClientTest {
    @Test
    public void test() {
        Product product = SimpleFactory.produceProduct(ProductKindEnum.PRODUCT_A);
        assert product != null;
        product.showDetails();
    }
}
